package com.codeying.utils.component;

import java.util.HashMap;

/**
 * hashMap链式构造器
 */
public class QueryMap extends HashMap<String, String> {
    
    public QueryMap add(String key, String value){
        add(true,key,value);
        return this;
    }

    public QueryMap add(Boolean condition,String key, String value){
        if(condition){
            this.put(key,value);
        }
        return this;
    }
    
}
